﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTOFrameworks;
/*
namespace FAQFrameworks
{
    public class ForumTreeVisitor : ITreeVisitor<IDataElement>
    {
        ITreeVisitor<Forum> visitor;

        public static ForumTreeVisitor Create()
        {
            ForumTreeVisitor visitor = new ForumTreeVisitor();
            visitor.visitor =
                ForumDataTableVisitor.CreateVisitor();

            return visitor;
        }

        #region ITreeVisitor<IDataElement> 成员

        public bool MoveUp()
        {
            return visitor.MoveUp();
        }

        public bool MoveNext()
        {
            return visitor.MoveNext();
        }

        public bool MoveFirstChild()
        {
            return visitor.MoveFirstChild();
        }

        public IDataElement GetValue()
        {
            return new ObjectDataElement(visitor.GetValue());
        }

        public bool MoveTo(IDataElement t)
        {
            return visitor.MoveTo((Forum)t.Value);
        }

        #endregion
    }
}
*/